package com.hanhai.material.device.entity;

import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 *  实体类。
 *
 * @author youchuang
 * @since 2023/10/24 11:14:26
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Table(value = "sys_material_record",dataSource = "device")
public class SysMaterialRecord implements Serializable {

    @Id(keyType = KeyType.None)
    private String id;

    private String workPlanId;

    private String machineName;

    private String operationUserId;
    private String operationUserName;

    private Date productDate;

    private String workPlan;

    @Column(ignore = true)
    private SysBomChild bomChild;

    private String bomId;

    private String materialId;

    private String materialName;

    private double num;

    private String unitName;

    private boolean hasGet;

    private String shift;

    private String shiftCode;

    private Boolean type;

    private String kingId;

    private String resultIntId;


    private String materialRecord;
    @Column(onInsertValue ="now()")
    private Date createTime;



}
